#!/bin/bash

export CUDA_VISIBLE_DEVICES=0
model_name=iTransformer

# Common parameters
common_params="--task_name long_term_forecast \
  --is_training 1 \
  --root_path ./dataset/ETT-small/ \
  --data_path ETTh1.csv \
  --model $model_name \
  --data ETTh1 \
  --features M \
  --seq_len 96 \
  --label_len 48 \
  --e_layers 2 \
  --d_layers 1 \
  --factor 3 \
  --enc_in 7 \
  --dec_in 7 \
  --c_out 7 \
  --des 'Exp' \
  --d_model 128 \
  --d_ff 128 \
  --itr 1"

# Run experiments for different prediction lengths
pred_lengths=(1 3 6 9 12 48 96 144 336 720)

for pred_len in "${pred_lengths[@]}"; do
  model_id="ETTh1_96_${pred_len}"
  
  echo "Running experiment for prediction length: ${pred_len}"
  python -u run.py $common_params \
    --model_id $model_id \
    --pred_len $pred_len
done